<%-- 
    Document   : homepageleft
    Created on : Mar 31, 2013, 1:00:36 AM
    Author     : sree
--%>

<%@page import="com.sree.tali.pojo.HomeList"%>
<%@page import="java.util.List"%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<div id="box1">
<div id="boxheader"><font size="5"><b><div class="span">24.Hrs</div></b> </font> </div>
   <% List<HomeList> hrs = (List<HomeList>)session.getAttribute("hrs24"); 
   int a =0;
   for(HomeList hl :hrs) {
    String color ="#0066ff" ;
    if(a%3==0)  color ="#cc00ff" ;
    if(a%3==1)  color ="#993300" ;
    if(a%3==2)  color ="#0066ff" ;
    a=a+1;
    if(a>15) 
    break;
%>
<!--logic:iterate name="hrs24" id="hrs24Id" scope="session"> 
       <!--bean:define name="hrs24Id" id="url" /-->
    <div id="box1links">
      <b><a href="<%=request.getContextPath()%>/home.do?method=displayPage&id=<%=hl.getId() %>" style="text-decoration: none">
              <font size="3" color="<%=color%>">
             &#9830;&nbsp;&nbsp; <%=hl.getTitle()%>
              </font></a></b>
    </div>
  <!--/logic:iterate-->  
  <%}%>
</div>
